package principle.composite;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class department extends organizationComponent {
    //构造器
    public department(String name, String des) { super(name, des); }
    //没有集合
    //没有add和remove，因为是叶子节点
    public String getName() { return super.getName(); }
    @Override
    public String getDes() { return super.getDes(); }
    //输出university包含的所有college
    @Override
    protected void print() {
        System.out.println(getName());
    }
}
